Skip to content

Show the speculative algorithm and draft model each AgentX point ran / 显示各 AgentX 点位实际使用的投机解码算法与草稿模型 - #1660

Merged
adibarra merged 1 commit into
mainfrom
feat/spec-drafter-display
Nov 4, 2026
Merged

adibarra merged 1 commit into
mainfrom
feat/spec-drafter-display

Conversation

@adibarra

@adibarra adibarra commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The AgentX tooltip's Speculative Decoding line showed the matrix label, which says neither the algorithm nor the drafter. mtp covers EAGLE, NextN, MTP and built-in DSpark, and draft_model was shown raw while covering both Muse Spark's separate DFlash drafter and DSV4.1-Flash's built-in DSpark on ATOM.

  • Ingest keeps spec_algorithm and spec_draft_model from InferenceX results (Check spec-decoding labels and record what each point drafts with / 校验投机解码标签并记录各点位实际的草稿方式 InferenceX#4805) in metrics.
  • The tooltip shows them, e.g. "DFlash (RadixArk/Muse-Spark-Open-DFlash2)" or "DSpark (native)". Points without them fall back to the label, and draft_model now reads "Draft Model".
  • db:backfill-spec-algorithm fills stored AgentX points from their server logs: vLLM and ATOM SpeculativeConfig, SGLang server_args, TensorRT-LLM's speculative config, and TileRT num_mtp. Only a separately named drafter (DSpark, DFlash, EAGLE, NextN, MTP or draft) is reported as one; drafters loaded from local copies map back to their repos.

The backfill has not been run. Against a read replica, all 4,735 speculative AgentX points parse; separate drafters found are Inferact/Kimi-K3-DSpark, Inferact/MiniMax-M3-EAGLE3-GQA and RadixArk/Muse-Spark-Open-DFlash2, everything else is native.

interpolation.test.ts fails locally on a checkout without this change too.

AI model disclosure
  • Model/version: anthropic/claude-opus-5-5
  • Role: designed the change, wrote the code, tests and backfill, and ran the read-replica dry run.
PR checklist
  • I have completed the AI model disclosure and kept it current
  • Added, changed, or removed filters, views, or pages include the matching API and inferencex-skills changes
  • New or changed indexable pages ship their /zh sibling
  • Changed Chinese copy follows the PR review checklist in docs/chinese-copy.md
中文

AgentX 提示框中的投机解码一行此前显示矩阵标签,既看不出算法,也看不出草稿模型。mtp 涵盖 EAGLE、NextN、MTP 与内置 DSpark;draft_model 则被原样显示,同时涵盖 Muse Spark 独立的 DFlash 草稿模型和 ATOM 上 DSV4.1-Flash 内置的 DSpark。

  • 导入时将 InferenceX 结果(Check spec-decoding labels and record what each point drafts with / 校验投机解码标签并记录各点位实际的草稿方式 InferenceX#4805)中的 spec_algorithm 与 spec_draft_model 存入 metrics。
  • 提示框显示这两项,例如 “DFlash (RadixArk/Muse-Spark-Open-DFlash2)” 或 “DSpark (原生)”。缺少这两项的点位回退为标签,draft_model 现显示为 “Draft Model”。
  • db:backfill-spec-algorithm 从服务端日志回填已存储的 AgentX 点位:vLLM 与 ATOM 的 SpeculativeConfig、SGLang 的 server_args、TensorRT-LLM 的投机解码配置以及 TileRT 的 num_mtp。只有名称表明为独立草稿模型(DSpark、DFlash、EAGLE、NextN、MTP 或 draft)时才记为独立草稿模型;从本地副本加载的草稿模型会映射回其仓库。

回填尚未执行。在只读副本上,全部 4,735 个投机解码 AgentX 点位均可解析;识别出的独立草稿模型为 Inferact/Kimi-K3-DSpark、Inferact/MiniMax-M3-EAGLE3-GQA 和 RadixArk/Muse-Spark-Open-DFlash2,其余均为原生。

interpolation.test.ts 在不含本改动的检出上同样本地失败。

AI 模型使用说明:anthropic/claude-opus-5-5,负责设计改动、编写代码、测试与回填脚本,并在只读副本上完成试运行。


Note

Low Risk
Changes are ingest metadata, display labels, and an optional metrics backfill; no auth or API contract breaks beyond richer JSONB fields.

Overview
AgentX tooltips no longer rely on the coarse matrix label (mtp, draft_model, none) alone for Speculative Decoding. When metrics carry spec_algorithm and spec_draft_model (from InferenceX ingest), the UI shows strings like DFlash (RadixArk/Muse-Spark-Open-DFlash2) or DSpark (native); missing fields still use the old label path, and draft_model now displays as Draft Model via framework labels.

The pipeline threads the two fields through runtime metadata, the benchmark mapper allowlist, and benchmark-transform into chart/tooltip data. Documentation in data-pipeline.md explains the distinction between matrix labels and what the server actually ran.

For historical AgentX points, db:backfill-spec-algorithm parses stored server logs (vLLM/ATOM SpeculativeConfig, SGLang args, TensorRT-LLM, TileRT num_mtp) via server-log-speculation.ts, merges results into benchmark_results.metrics, and only reports a separate drafter when log paths/names indicate one (otherwise native).

Reviewed by Cursor Bugbot for commit 5bf58ff. Bugbot is set up for automated code reviews on this repo. Configure here.

…t ran

Ingest keeps spec_algorithm and spec_draft_model from InferenceX results, the tooltip shows them instead of the matrix label, and draft_model gets a readable label. db:backfill-spec-algorithm fills stored AgentX points from their server logs.
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
inferencemax-app Ready Ready Preview Nov 4, 2026 10:28pm UTC

Request Review

@blacksmith-sh

blacksmith-sh Bot commented Nov 4, 2026

Copy link
Copy Markdown

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
First-load navigation/navigates to dashboard from the header with one click View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@adibarra
adibarra merged commit e543ef8 into main Nov 4, 2026
33 of 34 checks passed
@adibarra
adibarra deleted the feat/spec-drafter-display branch November 4, 2026 22:42

This branch was successfully deployed

1 active deployment
Preview — 5bf58ff8 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant